home *** CD-ROM | disk | FTP | other *** search
- #!/usr/bin/perl
-
- use lib qw(/usr/lib/libDrakX);
-
-
- use interactive;
- use keyboard;
- use Xconfigurator_consts;
- use common qw(:system);
- use c;
-
- local $_ = join '', @ARGV;
-
- /-h/ and die "usage: draxconf\n";
-
- $::isStandalone = 1;
-
- my $in = vnew interactive('su');
-
- my $choice = $in->ask_from_list("drakxconf",
- _("Choose the tool you want to use"),
- [ grep { my $prog = $_; int grep { -x "$_/$prog" } split ":", $ENV{PATH} }
- qw(XFdrake adduserdrake diskdrake drakxservices keyboarddrake mousedrake netdrake printerdrake draksec) ]) or c::_exit(0);
-
- $in->end;
-
- exec $choice, @ARGV or $in->exit(1);
-